package com.banzhi.shop.activity;


import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.banzhi.shop.R;

import com.banzhi.shop.base.BaseActivity;
import com.banzhi.shop.utils.LogUtils;
import com.banzhi.shop.utils.Translucent;
//审核状态:等待审核

public class AuditStateActivity extends BaseActivity implements View.OnClickListener {


  //  private Button mEnter;
    private ImageView mIvBackAudit;
  //  private LinearLayout mLlPass;
    private LinearLayout mLlAuditing;
    private Button mBtAuditing;
    private LinearLayout mLlFail;
    private Button mBtFail;
    private String mCheck;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_audit_state);
        Translucent.setTranslucent(this);
        initView();
        initData();

        Intent intent = getIntent();
        mCheck = intent.getStringExtra("check");
      //  LogUtils.d("mcheck:",mCheck);
/*
        if ("0".equals(mCheck)) {
            mLlAuditing.setVisibility(View.VISIBLE);
           // mLlPass.setVisibility(View.GONE);
            mLlFail.setVisibility(View.GONE);
        } else if ("2".equals(mCheck)) {
            mLlAuditing.setVisibility(View.GONE);
          //  mLlPass.setVisibility(View.GONE);
            mLlFail.setVisibility(View.VISIBLE);
        } else {
            mLlAuditing.setVisibility(View.GONE);
            mLlPass.setVisibility(View.VISIBLE);
            mLlFail.setVisibility(View.GONE);
        }*/
    }

    private void initView() {
        mIvBackAudit = (ImageView) findViewById(R.id.iv_back_audit);
       // mEnter = (Button) findViewById(R.i.enter);
        //mLlPass = (LinearLayout) findViewById(R.id.ll_pass);
        mLlAuditing = (LinearLayout) findViewById(R.id.ll_auditing);
        mBtAuditing = (Button) findViewById(R.id.bt_auditing);
     //   mLlFail = (LinearLayout) findViewById(R.id.ll_fail);
      //  mBtFail = (Button) findViewById(R.id.bt_fail);

    }

    private void initData() {
      //  mEnter.setOnClickListener(this);
     //   mBtFail.setOnClickListener(this);
        mBtAuditing.setOnClickListener(this);
        mIvBackAudit.setOnClickListener(this);


    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_back_audit:
                finish();
                break;
        /*  case R.id.enter:
                //跳转到城市合伙人CityPartnerActivity

                startActivity(new Intent(this, CityPartnerActivity.class));
                break;*/
            case R.id.bt_auditing:
                //跳转到我的
                Intent intent = new Intent(this, MainActivity.class);
                intent.putExtra("id",4);
                startActivity(intent);

                break;
     /*       case R.id.bt_fail:
                //跳转到合伙人申请
                Intent intent = new Intent(this, PartnerApplicationActivity.class);

                startActivity(intent);
                break;*/
        }

    }
}
